repo: Fix backwards timestamp in ostree_repo_write_commit()
authorMatthew Barnes <mbarnes@redhat.com>
Thu, 3 Dec 2015 17:01:38 +0000 (12:01 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Thu, 3 Dec 2015 17:43:52 +0000 (12:43 -0500)
commit94bc9765d519eefafcfa465060502dfbe7321913
treecf2f8c7a515dece2c047ebfc0c4130c1735be863
parenta02174b0bafcd43ab060ffdd322b5515369ec779
repo: Fix backwards timestamp in ostree_repo_write_commit()

ostree_repo_write_commit_with_time() converts the timestamp to
big-endian byte order.

ostree_repo_write_commit() was also doing this when calling
ostree_repo_write_commit_with_time(), resulting in a corrupted
commit object (timestamp bytes were backwards).

Recent regression in 14ffd7022a8c840f277c81e53864be4ea5fabacb
src/libostree/ostree-repo-commit.c